﻿@model SQLResident.Models.ServiceLog

@{
    ViewBag.Title = "Create";
}
<ul class="breadcrumb">
    <li><a href="@Url.Action("Index","Home")">Inicio</a> <span class="divider">/</span></li>
    <li><a href="@Url.Action("Index","ServiceLog")">Registro del Servicio</a> <span class="divider">/</span></li>
    <li class="active">Nuevo</li>
</ul>
<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ServiceLog</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ServiceStart)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ServiceStart)
            @Html.ValidationMessageFor(model => model.ServiceStart)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ServiceFinish)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ServiceFinish)
            @Html.ValidationMessageFor(model => model.ServiceFinish)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NewBlockingProcess)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NewBlockingProcess)
            @Html.ValidationMessageFor(model => model.NewBlockingProcess)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BlockingProcessCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BlockingProcessCount)
            @Html.ValidationMessageFor(model => model.BlockingProcessCount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.KilledProcess)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.KilledProcess)
            @Html.ValidationMessageFor(model => model.KilledProcess)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
